package com.fishery.refrigeratory.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;
import java.util.Date;

/**
 * @author wgz
 * @since 2021/1/20
 */

@ApiModel(value = "Refrigeratory出入库对象", description = "冷库出入库信息")
@TableName(value = "t_refrigeratory_access_info")
public class RefrigeratoryAccessInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "出入库编号id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "冷库id")
    @NotEmpty(message = "冷库id不能为空")
    private String refrigeratory_id;

    @ApiModelProperty(value = "入库时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @NotEmpty(message = "入库时间不能为空")
    private Date refrigeratoryInTime;

    @ApiModelProperty(value = "入库描述")
    private String refrigeratoryInDescription;

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "出库时间")
    @NotEmpty(message = "出库时间不能为空")
    private Date refrigeratoryOutTime;

    @ApiModelProperty(value = "出库描述")
    private String refrigeratoryOutDescription;

    @ApiModelProperty(value = "种苗编号")
    private String germchitId;

    @ApiModelProperty(value = "管理人员id")
    private String warehousingPersonId;


    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @ApiModelProperty(value = "逻辑删除,是1、否0")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer version;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRefrigeratory_id() {
        return refrigeratory_id;
    }

    public void setRefrigeratory_id(String refrigeratory_id) {
        this.refrigeratory_id = refrigeratory_id;
    }

    public Date getRefrigeratoryInTime() {
        return refrigeratoryInTime;
    }

    public void setRefrigeratoryInTime(Date refrigeratoryInTime) {
        this.refrigeratoryInTime = refrigeratoryInTime;
    }

    public String getRefrigeratoryInDescription() {
        return refrigeratoryInDescription;
    }

    public void setRefrigeratoryInDescription(String refrigeratoryInDescription) {
        this.refrigeratoryInDescription = refrigeratoryInDescription;
    }

    public Date getRefrigeratoryOutTime() {
        return refrigeratoryOutTime;
    }

    public void setRefrigeratoryOutTime(Date refrigeratoryOutTime) {
        this.refrigeratoryOutTime = refrigeratoryOutTime;
    }

    public String getRefrigeratoryOutDescription() {
        return refrigeratoryOutDescription;
    }

    public void setRefrigeratoryOutDescription(String refrigeratoryOutDescription) {
        this.refrigeratoryOutDescription = refrigeratoryOutDescription;
    }

    public String getGermchitId() {
        return germchitId;
    }

    public void setGermchitId(String germchitId) {
        this.germchitId = germchitId;
    }

    public String getWarehousingPersonId() {
        return warehousingPersonId;
    }

    public void setWarehousingPersonId(String warehousingPersonId) {
        this.warehousingPersonId = warehousingPersonId;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "RefrigeratoryAccessInfo{" +
                "id='" + id + '\'' +
                ", refrigeratory_id='" + refrigeratory_id + '\'' +
                ", refrigeratoryInTime=" + refrigeratoryInTime +
                ", refrigeratoryInDescription='" + refrigeratoryInDescription + '\'' +
                ", refrigeratoryOutTime=" + refrigeratoryOutTime +
                ", refrigeratoryOutDescription='" + refrigeratoryOutDescription + '\'' +
                ", germchitId='" + germchitId + '\'' +
                ", warehousingPersonId='" + warehousingPersonId + '\'' +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                ", isDeleted=" + isDeleted +
                ", version=" + version +
                '}';
    }
}